﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Maman18;

namespace MalbinTestProj
{
    class Program
    {
        static void Main(string[] args)
        {
            RedBlackTree<int, int> tree = new RedBlackTree<int, int>();

            for (int i = 0; i < 1000; i += 2)
            {
                tree.Insert(i, 0);
            }

            Console.WriteLine("Size: {0}", tree.Size);
            Console.WriteLine("Height: {0}", tree.GetTreeHeight());

            Console.WriteLine(tree.SearchNode(55, SearchOptions.Exact).Key);
            Console.WriteLine(tree.SearchNode(55, SearchOptions.Smaller).Key);
            Console.WriteLine(tree.SearchNode(55, SearchOptions.Larger).Key);
        }
    }
}
